From: | James McArthur |
Date: | 01 Aug 99 at 11:13:36 |
Subject: | Re: Beginners Woes |
From: James McArthur <jamesm@it.ntu.edu.au>
Hi,
> 1) As I'd asked before, I need to include iff.lib in the linking of a
> project - I'm OK with linking the lib_.a files, but I'm not sure as to
> how to convert iff.lib to libiff.a, or how to pass iff.lib onto the linker.
Try,
gcc -liff (assuming that libiff.a is in usr:lib/ or /usr/lib)
or
gcc -L<full path to the lib> -liff
> 2) I've just installed the latest snapshot of EGCS in my ADE directory.
> When invoking the compiler with m86k-amigaos-gcc -V egcs-2.91.66, I
> keep getting the error that it can't find cc1, and then it tells me that
> 'file path prefix '/gg/lib/gcc-lib/m68k-amigaos/egcs-2.91.66/' never
> used'. As this is slightly different from my ADE installation, I wonder
> if I have to specify path somewhere, so I can change the /gg/ at the
> beginning to my ADE:? For the moment I've removed the -V option and
> replaced it with -B<path>, which seems to be OK. Well, for now...
I had this with an older version of egcs.. I just assigned ADE o the
gg dir and it went away (dont know if this will work in this case tho)
> 3) Command too long - when combining all the object files, and the
> command line options, I've been getting this error - any easy way
> around this?
Try changing shells to the ksh, or sh.
Maybe even split the linking into two seperate stages..
(ie, link half the objects then link the remaining half with this
new object..)
> 4) When I reach the linking process with my project, I'm now getting
> the error 'collect2: cannot find `ld'', which I wasn't getting before
> when simply using gcc. Why is this, and how can I rectify the problem?
GG:bin/ is in your path?
There is also another path the needs to be set, AFAICR it
is something like GG:lib/gcc-lib/m68k-amigaos/egcs-2.91.66/bin (or something
along those lines..)